package com.example.auth.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.db.annotations.ID;
import com.example.db.annotations.Table;
import com.example.db.annotations.TableField;

import java.util.Date;
import java.util.List;

/**
 * @Classname DeptModel
 * @Description TODO
 * @Date 2022/7/31 0:04
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Table("sys_dept")
public class DeptModel {

    /**
     * 主键id
     */
    @ID
    private Integer id;

    /**
     * 父id
     */
    @TableField("pid")
    private Integer pid;

    /**
     * 部门名称
     */
    @TableField("deptName")
    private String deptName;

    /**
     * 部门编号
     */
    @TableField("deptNo")
    private String deptNo;

    /**
     * 部门介绍
     */
    @TableField("deptDesc")
    private String deptDesc;

    /**
     * 部门类型
     */
    @TableField("deptType")
    private Integer deptType;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField("createdate")
    private Date createdate;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptNo() {
        return deptNo;
    }

    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }

    public String getDeptDesc() {
        return deptDesc;
    }

    public void setDeptDesc(String deptDesc) {
        this.deptDesc = deptDesc;
    }

    public Integer getDeptType() {
        return deptType;
    }

    public void setDeptType(Integer deptType) {
        this.deptType = deptType;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }
}
